/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wii.elpro.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;

/**
 *
 * @author hendro
 */
public class Quotation {

    private long id;
    @Column(name="no_quotation",length=20)
    private String noQuotation;
    private int revise;
    private Date tglQuotation;//tanggal saat quotation dibuat oleh marketing
    private Spdcf spdcf;
    private String matrial;
    private double length;
    private double thickness;
    private String paymentTerm; //??
    private String price; //??
    private String loco; //??
    private String positionMatrial; //??
    private String delivery;
    private String validityStock;
    private Date validityPrice;
    private double vat;
    private List<QuotationItem> items = new ArrayList<QuotationItem>();    
    private int status; // 0=tender, 1=win, 2=los
    /**
     *  alasan win atau los
     *  1. specification
     *  2. fee
     *  3. realtionship
     *  4. price
     *  5. delivery
     *  6. payment
     *  7. brand
     */
    private int statusDesc;
    private double marginMinimum;

    public Quotation() {
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Date getTglQuotation() {
        return tglQuotation;
    }

    public void setTglQuotation(Date tglQuotation) {
        this.tglQuotation = tglQuotation;
    }

    public Spdcf getSpdcf() {
        return spdcf;
    }

    public void setSpdcf(Spdcf spdcf) {
        this.spdcf = spdcf;
    }

    public String getMatrial() {
        return matrial;
    }

    public void setMatrial(String matrial) {
        this.matrial = matrial;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double getThickness() {
        return thickness;
    }

    public void setThickness(double thickness) {
        this.thickness = thickness;
    }

    public String getPaymentTerm() {
        return paymentTerm;
    }

    public void setPaymentTerm(String paymentTerm) {
        this.paymentTerm = paymentTerm;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getLoco() {
        return loco;
    }

    public void setLoco(String loco) {
        this.loco = loco;
    }

    public String getPositionMatrial() {
        return positionMatrial;
    }

    public void setPositionMatrial(String positionMatrial) {
        this.positionMatrial = positionMatrial;
    }

    public String getDelivery() {
        return delivery;
    }

    public void setDelivery(String delivery) {
        this.delivery = delivery;
    }

    public String getValidityStock() {
        return validityStock;
    }

    public void setValidityStock(String validityStock) {
        this.validityStock = validityStock;
    }

    public Date getValidityPrice() {
        return validityPrice;
    }

    public void setValidityPrice(Date validityPrice) {
        this.validityPrice = validityPrice;
    }

    public List<QuotationItem> getItems() {
        return items;
    }

    public void setItems(List<QuotationItem> items) {
        this.items = items;
    }

    public double getVat() {
        return vat;
    }

    public void setVat(double vat) {
        this.vat = vat;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getStatusDesc() {
        return statusDesc;
    }

    public void setStatusDesc(int statusDesc) {
        this.statusDesc = statusDesc;
    }

    public String getNoQuotation() {
        return noQuotation;
    }

    public void setNoQuotation(String noQuotation) {
        this.noQuotation = noQuotation;
    }

    public int getRevise() {
        return revise;
    }

    public void setRevise(int revise) {
        this.revise = revise;
    }

    public double getMarginMinimum() {
        return marginMinimum;
    }

    public void setMarginMinimum(double marginMinimum) {
        this.marginMinimum = marginMinimum;
    }
}
